package com.lottery.material.service.portal.menu.impl;

import com.lottery.material.dao.conf.MenuLevelConfigMapper;
import com.lottery.material.pojo.conf.MenuLevelConfig;
import com.lottery.material.service.portal.menu.MenuLevelConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:    菜单级别配置服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-13 14:18
 */
@Service
public class MenuLevelConfigServiceImpl implements MenuLevelConfigService {

    @Autowired
    MenuLevelConfigMapper menuLevelConfigMapper;

    @Override
    public List<MenuLevelConfig> findMenuListByLevelType(Integer levelType) {
        return menuLevelConfigMapper.findMenuListByLevelType(levelType);
    }

    @Override
    public MenuLevelConfig findByMenuCode(String menuCode) {
        return menuLevelConfigMapper.findByMenuCode(menuCode);
    }
}
